![]() | ![]() | ![]() | ![]() |
When you use SAS BI Web Services for .NET to connect to a SAS Workspace Server, an authentication error might occur and the connection fails. The connection fails when the SAS Workspace Server is in the same authentication domain as the SAS® Metadata Server and the user does not have logon credentials for that authentication domain stored in the SAS® Metadata Repository.
The problem occurs because SAS BI Web Services for .NET passes in a null value for the authentication domain.
To resolve this issue, provide the metadata authentication domain in the Domain element, which is in the WS-Security header of the Simple Object Access Protocol (SOAP) request.
For example, the following SOAP request shows the SAS Metadata Server in the DefaultAuth domain:
<soapenv:Envelope xmlns:add="http://tempuri.org/AddFloatsWorkspace" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-s ecext-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-ut ility-1.0.xsd"> <wsse:Username>sasdemo</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-pro file-1.0#PasswordText">Demo123</wsse:Password> <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-messa ge-security-1.0#Base64Binary">ex02otYhd/wVWzv92bbahg==</wsse:Nonce> <wsu:Created>2009-07-17T14:46:38.329Z</wsu:Created> <Domain>DefaultAuth</Domain> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <add:AddFloats_WS> <add:num1>2.0</add:num1> <add:num2>3.0</add:num2> </add:AddFloats_WS> </soapenv:Body> </soapenv:Envelope>
The Domain element appears in the WS-Security header, but is not in a namespace, which conforms to the WS-Security specification. The Domain element contains the authentication domain that the SAS Metadata Server is in, which is DefaultAuth in this example.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS BI Web Services for .NET | Microsoft® Windows® for x64 | 9.2 TS2M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | 9.2 TS2M3 | ||
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | 9.2 TS2M3 | ||
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | 9.2 TS2M3 | ||
Microsoft Windows XP Professional | 9.2 TS2M0 | 9.2 TS2M3 | ||
Windows Vista | 9.2 TS2M0 | 9.2 TS2M3 |